import request from '@/utils/request'

export function getDashboard() {
  return request({
    url: '/mgr/notification/dashboard',
    method: 'get'
  })
}

export function markReaded(arr) {
  return request({
    url: '/mgr/notification/mark',
    method: 'post',
    data: arr
  })
}

export function markAll(arr) {
  return request({
    url: '/mgr/notification/markall',
    method: 'post',
    data: arr
  })
}

export function getNotification(params) {
  return request({
    url: '/mgr/notification',
    method: 'get',
    params
  })
}

export function sendNotification(data) {
  return request({
    url: '/mgr/notification',
    method: 'post',
    data: data
  })
}

